import { defineStore } from 'pinia';
import { dictApi } from '/@/api/system/dict';
const baseApi = dictApi();
export const useAppStore = defineStore('appStore', {
    state: () => ({
        // 字典列表
        dictList: [],
        // 组件大小
        componentSize: 14,
    }),
    actions: {
        async getDictListAction() {
            baseApi.listAll().then(res=>{
                this.dictList = res.data || []
            })
        }
    }
})